import request from "@/utils/request";

/**
 * @description 记录列表
 * @param params
 * @returns {*}
 */
export function recordList(params){
    return request({
        url:'/adminPaymentQuota/paymentRecord',
        method:'GET',
        params
    })
}

/**
 * 金额列表
 * @param params
 * @returns {*}
 */
export function amountList(params){
    return request({
        url:'/adminPaymentQuota/list',
        method:'GET',
        params
    })
}

/**
 * @description 新增/编辑
 * @param data
 * @returns {*}
 */
export function recordSave(data){
    return request({
        url:'/animalRescue/addAndUpdateAnimalRescue',
        method:'POST',
        data
    })
}

/**
 * @description 新增/编辑
 * @param data
 * @returns {*}
 */
export function amountSave(data){
    return request({
        url:'/adminPaymentQuota/setPaymentQuota',
        method:'POST',
        data
    })
}

/**
 * @description 详情
 * @param id
 * @returns {*}
 */
export function recordDetail(id){
    return request({
        url:'/adminPaymentQuota/paymentLogDetail',
        method:'GET',
        params:{id}
    })
}

/**
 * @description 删除
 * @param noticeId
 * @returns {*}
 */
export function amountDeleteRow(noticeId){
    return request({
        url:'/adminNotice/delete',
        method:'GET',
        params:{noticeId}
    })
}

